package com.stack.search.controller.v1;


import com.stack.model.common.dtos.ResponseResult;
import com.stack.model.search.dtos.HotKeywordDto;
import com.stack.model.search.dtos.UserSearchDto;
import com.stack.search.service.ApHotSearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @author llz
 * @date 2023/10/13 0:58
 * @description 热词加载
 */
@RestController
@RequestMapping("/api/v1/hot_keywords")
public class ApHotSearchController {

    @Autowired
    private ApHotSearchService apHotSearchService;

    @PostMapping("/load")
    public ResponseResult hotkeywords() {
        //TODO    热词加载
        return apHotSearchService.findHotSearch();
    }

}
